home *** CD-ROM | disk | FTP | other *** search
- #! /bin/csh
- #
- # Makercsrev Make a revision of every RCS file.
- #
- # Synopsis:
- # Makercsrev <rev#>
- #
- # Description:
- # Loop through every RCS file and force the creation of a new
- # revision.
- #
- # Parameters:
- # rev# Revision number to create.
- #---------------------------------------------------------------------------
-
- set rev = $1
-
- set opt = ""
- if ( $?RCSOPTS ) then
- set opt = ( $opt $RCSOPTS )
- endif
- if ( -e ./.rcsopts ) then
- set x = ( `grep "^co[ ]" ./.rcsopts` )
- if ( $#x > 1 ) then
- set opt = ( $opt $x[2-] )
- else
- set x = ( `cat ./.rcsopts` )
- if ( "$x[1]" != "ci" && "$x[1]" != "col" ) then
- echo "*** Old style .rcsopts file ***"
- set opt = ( $opt `cat ./.rcsopts` )
- endif
- endif
- endif
-
- foreach rcsfile ( `ls RCS/*,v` )
- if ( -d $rcsfile ) continue
- set file = `basename $rcsfile ,v`
- /usr/sbin/co -l $opt $file
- /usr/sbin/ci -f$rev -m"New Revision" $file
- end
-
- ### Local Variables:
- ### auto-fill-hook: nil
- ### End:
-